/*
** main.c for  in /home/guicqu_g//rush/epikong/etape_1
** 
** Made by gallien guicquero
** Login   <guicqu_g@epitech.net>
** 
** Started on  Fri Mar 25 20:42:58 2011 gallien guicquero
** Last update Sat Mar 26 15:04:17 2011 gallien guicquero
*/

#include <stdio.h>
#include "map.h"
#include "window.h"

int	main(void)
{
  char	*maps[5];
  int	i;

  i = 0;
  maps[0] = "stage1.map";
  maps[1] = "stage2.map";
  maps[2] = "stage3.map";
  maps[3] = "stage4.map";
  maps[4] = "stage5.map";
  puts("Select a map (1 to 5)");
  while (!(i >= '1' && i <= '5'))
    i = getchar();
  my_mlx(map_from_file(maps[i - '0' - 1]));
  return (0);
}
